/***********************************************************************************************************************
**	filename: tick.h
**	date: 2013-07-16
***********************************************************************************************************************/

#ifndef TICK_INCLUDED
#define TICK_INCLUDED
#include "../user_types.h"

typedef ui64									Tick_DT;

Tick_DT tick_get(void);
Tick_DT tick_cmp(Tick_DT start, Tick_DT end);
bool tick_timeout(Tick_DT start, Tick_DT timeout);
void tick_delay(Tick_DT tick);
void getUuid(char *buffer, int len);
void datetime_format(char *_buf, const char *format);

#define delay_ms(ms)							tick_delay(ms)


#endif	/* TICK_INCLUDED */

/***********************************************************************************************************************
**	endline
***********************************************************************************************************************/
